<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8" />
		<title>Document</title>
	</head>
	<body>
		<script type="text/javascript" >

			//正常写法
			/* function add (a,b){
				return a+b
			}
			add(1,2) */

			//柯里化写法
			/* function add(a){
				return function (b){
					return a + b
				}
			}
			const result = add(1)(2)
			console.log(result) */
		</script>
	</body>
</html>